<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人日程维护</title>
<link href="../styles/schedule.css" type="text/css" rel="stylesheet" />
<%@ include file="/pages/inc/header.jsp" %>
<script type="text/javascript" src="../js/jquery-easyui-1.5.3/plugins/jquery.datetimebox.js"></script>
<script type="text/javascript" src="../js/calendar.js"></script>
<script type="text/javascript">
    <%@ include file="/pages/jsp/schedule/schedule.js" %>
    
</script>
</head>
<body>

<!-- 日程编辑   -->
<div class="writeSchedule" id="writeSchedule" title="编辑日程" style="display:none;">
	
                    <div class="in_box_tarbox_margin">

                        <table class="in_box_tarbox_table" cellspacing="0" cellpadding="0" >
                            <tbody>
                                <tr>
                                    <td>
                                        <div class="c_left in_box_tarbox_table_ldiv">
                                            <h2 class="in_box_tarbox_table_h2">人员信息</h2>                                            
                                            <input type="text"  id="person_name_write" value="<c:out value='${userName}'/>" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">                                           
                                        </div>
                                        <div class="c_left in_box_tarbox_table_cdiv" id="hide_type_edit">
                                            <h2 class="in_box_tarbox_table_h2">日程类型</h2>
                                            <div id="schedule_type_write">
                                                <select id="calendar_type_write" class="easyui-combobox" data-options="editable:false" style="width: 80%;">                                               
            									  <option value="1">市政府主要领导召开会议</option>
                                                  <option value="2">分管领导召开会议</option>
                                                  <option value="3">公司专题会议</option>
                                                  <option value="4">市级调研</option>
                                                  <option value="5">公司级调研</option>
                                                  <option value="6">市级会见座谈会</option>
                                                  <option value="7">公司级会见座谈</option>        											
                                                </select>
                                            </div>
                                        </div>
                                        <div class="c_right in_box_tarbox_table_rdiv" id="hide_level_edit">
                                            <h2 class="in_box_tarbox_table_h2">优先级</h2>
                                            <div id="schedule_priority_write">
                                                <select id="calendar_priority_write" class="easyui-combobox" data-options="editable:false" style="width: 75%;">
                                                  <option value ="1">高</option>
                                                  <option value ="2">中</option>
                                                  <option value ="3">低</option>
                                                </select>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="c_left in_box_tarbox_table_ldiv">
                                            <h2 class="in_box_tarbox_table_h2">开始时间</h2>
                                            <input id="start_time_write"  class="easyui-datetimebox in_box_tarbox_table_input in_box_tarbox_table_ldiv_input" name="startime_write" editable="false"   placeholder="请填写开始时间">

                                        </div>
                                        <div class="c_left in_box_tarbox_table_cdiv">
                                            <h2 class="in_box_tarbox_table_h2">结束时间</h2>
                                            <input id="end_time_write"  class="easyui-datetimebox in_box_tarbox_table_input in_box_tarbox_table_ldiv_input" name="endtime_write" editable="false" data-options="required:true,showSeconds:false"  placeholder="请填写结束时间">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div>
                                            <h2 class="in_box_tarbox_table_h2">日程主题</h2>
                                            <input type="text" id="calendar_title_write" placeholder="请填写日程主题" class="in_box_tarbox_table_input">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div>
                                            <h2 class="in_box_tarbox_table_h2">日程内容</h2>
                                            <textarea id="calendar_contents_write"  class="in_box_tarbox_table_input in_box_tarbox_table_textarea"></textarea>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="in_box_tarbox_table_button">
                            <ul>
                                <li><a href="#" id="cancel_add_calendar_write">取消</a></li>
                                <li><a href="#" class="in_box_tarbox_table_button_cur" id="save_add_calendar_write">保存</a></li>
                            </ul>
                        </div>
                    </div>
           
</div>





<div class="schedule_show" id="schedule_show" title="查看日程" style="display:none;">
	
                    <div class="in_box_tarbox_margin">

                        <table class="in_box_tarbox_table" cellspacing="0" cellpadding="0" >
                            <tbody>
                                <tr>
                                    <td>
                                        <div class="c_left in_box_tarbox_table_ldiv">
                                            <h2 class="in_box_tarbox_table_h2">人员信息</h2>                                            
                                            <input type="text"  value="${scheduleInfo1.person}" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">                                           
                                        </div>
                                        <div class="c_left in_box_tarbox_table_cdiv" id="hide_type_show">
                                            <h2 class="in_box_tarbox_table_h2">日程类型</h2>
                                            <div >
                                                <c:if test="${scheduleInfo1.type == 1}">
   													<input type="text"  value="市政府主要领导召开会议" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
												</c:if>
												<c:if test="${scheduleInfo1.type == 2}">
   													<input type="text"  value="分管领导召开会议" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
												</c:if>
												<c:if test="${scheduleInfo1.type == 3}">
   													<input type="text"  value="公司专题会议" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
												</c:if>
												<c:if test="${scheduleInfo1.type == 4}">
									   				<input type="text"  value="市级调研" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
												</c:if>
												<c:if test="${scheduleInfo1.type == 5}">
									   				<input type="text"  value="公司级调研" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
												</c:if>
												<c:if test="${scheduleInfo1.type == 6}">
									   				<input type="text"  value="市级会见座谈会" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
												</c:if>
												<c:if test="${scheduleInfo1.type == 7}">
									   				<input type="text"  value="公司级会见座谈" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
												</c:if>
											 
                                            </div>
                                        </div>
                                        <div class="c_right in_box_tarbox_table_rdiv" id = "hide_level_show">
                                            <h2 class="in_box_tarbox_table_h2">优先级</h2>
                                            <div >
                                             
                                            	<c:if test="${scheduleInfo1.level == 1}">
                                            		<input type="text"   value="高" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input_youxianji">
                                            	</c:if>
                                                <c:if test="${scheduleInfo1.level == 2}">
                                                	<input type="text"  value="中" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input_youxianji">
                                                </c:if>
                                                <c:if test="${scheduleInfo1.level == 3}">
                                                	<input type="text"  value="低" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input_youxianji">
                                                </c:if> 
                                                                                           
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="c_left in_box_tarbox_table_ldiv">
                                            <h2 class="in_box_tarbox_table_h2">开始时间</h2>
                                            <input type="text"  value="<fmt:formatDate value="${scheduleInfo1.startime}" pattern="yyyy-MM-dd hh:mm:ss" />" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input" label="Select DateTime:">

                                        </div>
                                        <div class="c_left in_box_tarbox_table_cdiv">
                                            <h2 class="in_box_tarbox_table_h2">结束时间</h2>
                                            <input value="<fmt:formatDate value="${scheduleInfo1.endtime}" pattern="yyyy-MM-dd hh:mm:ss" />" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input" label="Select DateTime:">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div>
                                            <h2 class="in_box_tarbox_table_h2">日程主题</h2>
                                            <input type="text"  value="${scheduleInfo1.theme}" readonly="readonly" class="in_box_tarbox_table_input">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div>
                                            <h2 class="in_box_tarbox_table_h2">日程内容</h2>
                                            <textarea  class="in_box_tarbox_table_input in_box_tarbox_table_textarea" readonly>${scheduleInfo1.content}</textarea>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        
                    </div>
           	
</div>



<div style="display:none;">
	<p id=>人员信息：</p><c:out value="${scheduleInfo1.person}"></c:out>
			<br>
			<p>日程类型：</p>
			<c:if test="${scheduleInfo1.type == 1}">
   				<input type="text"  value="市政府主要领导召开会议" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
			</c:if>
			<c:if test="${scheduleInfo1.type == 2}">
   				<input type="text"  value="分管领导召开会议" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
			</c:if>
			<c:if test="${scheduleInfo1.type == 3}">
   				<input type="text"  value="公司专题会议" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
			</c:if>
			<c:if test="${scheduleInfo1.type == 4}">
   				<input type="text"  value="市级调研" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
			</c:if>
			<c:if test="${scheduleInfo1.type == 5}">
   				<input type="text"  value="公司级调研" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
			</c:if>
			<c:if test="${scheduleInfo1.type == 6}">
   				<input type="text"  value="市级会见座谈会" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
			</c:if>
			<c:if test="${scheduleInfo1.type == 7}">
   				<input type="text"  value="公司级会见座谈" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
			</c:if>
			<br>
			<p>优先级：</p>
			<c:if test="${scheduleInfo1.level == 1}">
   				<p><c:out value="高"/><p>
			</c:if>
			<c:if test="${scheduleInfo1.level == 2}">
   				<p><c:out value="中"/><p>
			</c:if>
			<c:if test="${scheduleInfo1.level == 3}">
   				<p><c:out value="低"/><p>
			</c:if>
			<br>
			<p>开始时间：</p><c:out value="${scheduleInfo1.startime}"></c:out>
			<br>
			<p>结束时间：</p><c:out value="${scheduleInfo1.endtime}"></c:out>
			<br>
			<p>日程主题：</p><c:out value="${scheduleInfo1.theme}"></c:out>
			<br>
			<p id="1">日程内容：</p><c:out value="${scheduleInfo1.content}"></c:out>
			<input  type="button" value="关闭" id="close">
</div>


<br/>
    <div id="hidebg"></div>
    <div id="main" style="width:1000px; margin: auto;">
    <div style="width:998px;">
        <div class="in_pa_right">
        <div class="in_pa_box">
        
        <div id="calendar_shedule"></div>
            <!--添加日程-->
            
            
            <div class="writeSchedule" id="add_programme" title="添加日程" style="display:none;">
                    <div class="in_box_tarbox_margin">

                        <table class="in_box_tarbox_table" cellspacing="0" cellpadding="0" >
                            <tbody>
                                <tr>
                                    <td>
                                        <div class="c_left in_box_tarbox_table_ldiv">
                                            <h2 class="in_box_tarbox_table_h2">人员信息</h2>
                                            <div class="info_type" id="info_type">                                            
                                                <select id="person_name_list" name="person_name_list" class="easyui-combobox" data-options="editable:false" style="width: 180px;">
                                                 	<c:forEach items="${persons}" var="item">
            											<option value="${item.personuuid}">${item.cnname}</option>
        											</c:forEach>
                                                </select>
                                            </div>
                                            <input type="text" id="person_name" value="<c:out value='${userName}'/>" readonly="true" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
                                            <div class="in_box_tarbox_table_ldiv_div" style="display: none;">
                                            </div>
                                        </div>
                                        
                                        <div class="c_left in_box_tarbox_table_cdiv" id="hide_type">
                                            <h2 class="in_box_tarbox_table_h2">日程类型</h2>
                                            <div id="schedule_type">
                                                <select id="calendar_type" class="easyui-combobox" data-options="editable:false" style="width: 80%;">   
                                                  <option value="">请选择</option>                                                
            									  <option value="1">市政府主要领导召开会议</option>
                                                  <option value="2">分管领导召开会议</option>
                                                  <option value="3">公司专题会议</option>
                                                  <option value="4">市级调研</option>
                                                  <option value="5">公司级调研</option>
                                                  <option value="6">市级会见座谈会</option>
                                                  <option value="7">公司级会见座谈</option>        											
                                                </select>
                                            </div>
                                        </div>
                                        <div class="c_right in_box_tarbox_table_rdiv" id="hide_level">
                                            <h2 class="in_box_tarbox_table_h2">优先级</h2>
                                            <div id="schedule_priority">
                                                <select id="calendar_priority" class="easyui-combobox" data-options="editable:false" style="width: 75%;">
                                                  <option value="">请选择</option>
                                                  <option value ="1">高</option>
                                                  <option value ="2">中</option>
                                                  <option value ="3">低</option>
                                                </select>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="c_left in_box_tarbox_table_ldiv">
                                            <h2 class="in_box_tarbox_table_h2">开始时间</h2>
                                            <input id="start_time" class="easyui-datetimebox" data-options="required: true" editable="false"  labelPosition="top" style="width: 180px;">

                                        </div>
                                        <div class="c_left in_box_tarbox_table_cdiv">
                                            <h2 class="in_box_tarbox_table_h2">结束时间</h2>
                                            <input id="end_time" class="easyui-datetimebox" data-options="required: true" editable="false" labelPosition="top" style="width: 180px;">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div>
                                            <h2 class="in_box_tarbox_table_h2">日程主题</h2>
                                            <input type="text" id="calendar_title" data-options="required: true" placeholder="请填写日程主题" class="easyui-textbox" type="text" style="width: 410px;">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div>
                                            <h2 class="in_box_tarbox_table_h2">日程内容</h2>
                                            <textarea id="calendar_contents"  placeholder="请用户记得填写日程内容详情..." class="in_box_tarbox_table_input in_box_tarbox_table_textarea"></textarea>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="in_box_tarbox_table_button">
                            <ul>
                                <li><a href="#" id="cancel_add_calendar">取消</a></li>
                                <li><a href="#" class="in_box_tarbox_table_button_cur" id="save_add_calendar">保存</a></li>
                            </ul>
                        </div>
                    </div>
            </div>
            
            

            <!--导入模板-->
            <div class="in_box_tarbox" id="import_template" style="display:none;">

                <div class="in_box_tarbox_content in_box_tarbox_content_h">
                    <div class="in_box_tarbox_title">
                        <h2><b>导入模板</b></h2>
                        <a href="#" class="in_box_tarbox_title_a"></a>
                    </div>
                    <div class="in_box_tarbox_margin">

                        <table class="in_box_tarbox_table" cellspacing="0" cellpadding="0" >
                            <tbody>
                            <tr>
                                <td>
                                    <div class="c_left in_box_tarbox_table_ldiv">
                                        <h2 class="in_box_tarbox_table_h2">模板类型</h2>
                                        <input type="text" placeholder="请填模板类型" class="in_box_tarbox_table_input in_box_tarbox_table_ldiv_input">
                                        <div class="in_box_tarbox_table_ldiv_div" style="display: none;">
                                            <ul>
                                                <li>市政府主要领导召开会议</li>
                                                <li>分管领导召开会议</li>
                                                <li>公司专题会议</li>
                                                <li>市级调研</li>
                                                <li>公司级调研</li>
                                                <li>市级会见座谈会</li>
                                                <li>公司级会见座谈</li>
                                            </ul>
                                        </div>
                                    </div>
                                    <div class="c_left in_box_tarbox_table_cdiv">
                                        <h2 class="in_box_tarbox_table_h2">日程类型</h2>
                                        <input type="text" placeholder="请填写日程类型" class="in_box_tarbox_table_input in_input_width">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <h2 class="in_box_tarbox_table_h2">模板文件</h2>
                                        <input type="text" placeholder="请填写日程主题" class="in_box_tarbox_table_input in_input_width_1">
                                        <button type="button" class="in_input_bfile">浏览</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <div class="in_box_tarbox_table_button">
                            <ul>
                                <li><a href="#">取消</a></li>
                                <li><a href="#" class="in_box_tarbox_table_button_cur">保存</a></li>
                            </ul>
                        </div>
                    </div>

                </div>
            </div>

            <div class="c_clear in_box_tow">
                <div class="in_box_title">
                    <h2><i></i>日程列表</h2>
                    <ul class="in_box_title_a" id="add_programme_btn">
                        <li class="add_richeng" id="add_richeng"><a href="#"><img src="../images/home/ic_08.png" width="26" height="26">添加日程</a></li>
                    </ul>
                    <div id="addlingdaoButton">
                    	<ul class="in_box_title_a" id="add_programme_btn1">
                        	<li class="add_lingdao" id="add_lingdao"><a href="#"><img src="../images/home/ic_08.png" width="26" height="26">添加领导日程</a></li>
                    	</ul>
                    </div>
                    <div id="lindaoButton">
	                     <ul class="in_box_title_a" id="add_programme_list1">
	                        <li class="add_richeng" ><a id="lingDaoLieBiao" href="<c:url value='/schedule/scheduleMaintenance'/>?judge=1"><img src="../images/home/ic_05.png" width="26" height="26">领导日程列表</a></li>
	                    </ul> 
                    </div>
                    <ul class="in_box_title_a" id="add_programme_list2">
                        <li class="add_richeng" ><a id="geRenLieBiao" href="<c:url value='/schedule/scheduleMaintenance'/>?judge=2"><img src="../images/home/ic_05.png" width="26" height="26">个人日程列表</a></li>
                    </ul>
                </div>
                <div class="in_box_tow_list" id="calendarList">
                </div>
            </div>
        </div>
        </div>
    </div>
    </div>
</body>
</html>